package some.member.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class InfoController {
		
	@RequestMapping("/info.do")
	public ModelAndView info(HttpSession session){
		
		if(session.getAttribute("id") == null){
			return new ModelAndView("info");
		}else{
			return new ModelAndView("loginInfo");
		}
	}
}
